package com.warehouse.service;

import com.warehouse.dto.Ware;
import com.warehouse.dto.WareInfo;
import com.warehouse.entity.Warehouse;

import java.util.List;

//仓库业务接口层
public interface WarehouseService {

    /**
     * 模糊查询仓库名称
     * @param name
     * @return
     */
   List<Warehouse> findLikeWareNmae(String name) ;


    /**
     * 新增仓库
     * @param warehouse 仓库实体
     * @return true添加成功,false添加失败
     */
    public boolean insertWare(Warehouse warehouse);

    /**
     * 编辑仓库
     * @param warehouse 更改的信息
     * @return true更新成功,false更新失败
     */
    boolean updateWare(Warehouse warehouse);

    /**
     * 查看仓库信息
     * @return
     */
    List<Warehouse> findwareInfo();

    /**
     * 产看仓库的具体信息
     * @param wareName
     * @return
     */
    WareInfo wareInfo(String wareName);
}
